core/txpool/legacypool: remove redundant check for floatingRatio #27477#1913
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
28fa3ad to
912e622
Compare
There was a problem hiding this comment.
Pull request overview
This PR removes a redundant condition check in the transaction pool's discard logic. The check floatingRatio == 0 is dead code since floatingRatio is a constant defined as 1 and can never be zero.
Key Changes:
- Removed the redundant
|| floatingRatio == 0condition from the heap selection logic in theDiscardmethod
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Proposed changes
Ref: ethereum#27477
Types of changes
What types of changes does your code introduce to XDC network?
Put an
✅in the boxes that applyImpacted Components
Which part of the codebase this PR will touch base on,
Put an
✅in the boxes that applyChecklist
Put an
✅in the boxes once you have confirmed below actions (or provide reasons on not doing so) that